package com.liusand.admin.service;

import com.liusand.xo.pojo.Blog;
import com.liusand.xo.vo.BlogVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author LiuSha
 */
@Transactional
public interface BlogService {
    boolean add(Blog blog);
    boolean deleteById(String id);
    boolean update(Blog blog);
    List<BlogVO> findAll();
    BlogVO findVOById(String id);
    Blog findById(String id);
    Blog findByTitle(String title);
    BlogVO findVOByTitle(String title);
}
